package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_match_prize;

import cn.com.api.mapper.ApiU_match_prizeMapper;

import cn.com.api.service.ApiU_match_prizeService;

/**
 * 
 **/
@Service
public class U_match_prizeServiceImplBase {
	@Autowired
	private ApiU_match_prizeMapper apiU_match_prizeMapper;
    
    // 根据id获取
	public ApiU_match_prize findU_match_prizeById(Integer id){
		ApiU_match_prize u_match_prize = apiU_match_prizeMapper.findU_match_prizeById( id );
		return u_match_prize;
	}
    
    //查看数据集
	public List<ApiU_match_prize> findU_match_prizes(){
        List<ApiU_match_prize> u_match_prizes = apiU_match_prizeMapper.findU_match_prizes();
		return u_match_prizes;
    }
   
    //根据条件查看数据集
	public List<Map<String, Object>> findU_match_prizesByMap(HashMap condition){
        List<Map<String, Object>> u_match_prizes = apiU_match_prizeMapper.findU_match_prizesByMap(condition);
		return u_match_prizes;
    }
    
	// 添加
	public int insertU_match_prize(ApiU_match_prize u_match_prize){
		int ret_I= apiU_match_prizeMapper.insertU_match_prize(u_match_prize);
		return ret_I;
	}

	// 修改
	public int updateU_match_prize(ApiU_match_prize u_match_prize){
		int ret_I= apiU_match_prizeMapper.updateU_match_prize(u_match_prize);
		return ret_I;
	}
	
    // 删除
	public int deleteU_match_prize(Integer id){
		int ret_I= apiU_match_prizeMapper.deleteU_match_prize( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


